"""
@Time ： 2021/11/11 15:13
@Auth ： ChenZhangKun
"""
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select

webDriver = webdriver.Chrome(r'D:\sofwares\chrom\chromedriver.exe')
# 最大等待十秒钟
webDriver.implicitly_wait(10)

webDriver.get("http://cdn1.python3.vip/files/selenium/test2.html")
# 创建select对象
select = Select(webDriver.find_element(By.ID, "ss_single"))
# 选择下了雷老师
select.select_by_visible_text("小雷老师")
